package sample;

import javafx.scene.control.Alert;

/**
 * Created by lilongfei on 2016/12/15.
 */
public class AlterApp{

    public static void info(String msg){

        Alert a = new Alert(Alert.AlertType.INFORMATION);
        a.setTitle("消息");
        a.setHeaderText("info:");
        a.setResizable(true);
        a.setContentText(msg);
        a.showAndWait();
    }

    public static void error(String msg){
        Alert a = new Alert(Alert.AlertType.ERROR);
        a.setTitle("错误");
        a.setHeaderText("error:");
        a.setResizable(true);
        a.setContentText(msg);
        a.showAndWait();
    }
}
